package com.liveinstars.post.application;

import com.liveinstars.post.business.repository.base.BaseRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;


@SpringBootApplication(scanBasePackages = {"com.liveinstars.post", "com.liveinstars.api","com.onepiece.cache"})
@EnableEurekaClient
@EnableFeignClients(basePackages = "com.liveinstars.api")
@EnableAsync
@EnableJpaRepositories(basePackages = "com.liveinstars.post.business.repository", repositoryBaseClass = BaseRepositoryImpl.class)
@EntityScan("com.liveinstars.post")
public class PostApplication {


    public static void main(String[] args) {
        SpringApplication.run(PostApplication.class, args);
    }

}
